﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Windows;

namespace Invini.Localization
{
    public delegate void LocalizationCultureChangedEventHandler(object sender, LocalizationCultureChangedEventArgs e);
    public class LocalizationCultureChangedEventArgs : EventArgs
    {
        public DependencyObject Target
        {
            get;
            private set;
        }
        public CultureInfo NewCulture
        {
            get;
            private set;
        }

        public LocalizationCultureChangedEventArgs(CultureInfo newCulture)
        {
            this.NewCulture = newCulture;
        }
        public LocalizationCultureChangedEventArgs(DependencyObject target, CultureInfo newCulture)
        {
            this.Target = target;
            this.NewCulture = newCulture;
        }
    }
}
